﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="SalesReport.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.WebForm15" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
  <table style="width:100%;">
        <tr>
            <td style="height: 16px">
                <asp:Button ID="btnSales" runat="server" Text="Sales Report by Genre" 
                    onclick="btnSalesGenre_Click" CssClass="genericButton" />
            </td>
            <td style="height: 16px">
                <asp:Button ID="btnSalesBook" runat="server" Text="Sales Report by Book" 
                    onclick="btnSalesBook_Click" CssClass="genericButton" />
            </td>
            <td style="height: 16px; width: 48px;">
                <asp:Label ID="Label1" runat="server" CssClass="label" Text="Specify Date:" 
                    Width="102px"></asp:Label>
            </td>
            <td style="height: 16px">
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                    CssClass="secondaryList">
                    <asp:ListItem>Month</asp:ListItem>
                    <asp:ListItem Value="1">January</asp:ListItem>
                    <asp:ListItem Value="2">February</asp:ListItem>
                    <asp:ListItem Value="3">March</asp:ListItem>
                    <asp:ListItem Value="4">April</asp:ListItem>
                    <asp:ListItem Value="5">May</asp:ListItem>
                    <asp:ListItem Value="6">June</asp:ListItem>
                    <asp:ListItem Value="7">July</asp:ListItem>
                    <asp:ListItem Value="8">August</asp:ListItem>
                    <asp:ListItem Value="9">September</asp:ListItem>
                    <asp:ListItem Value="10">October</asp:ListItem>
                    <asp:ListItem Value="11">November</asp:ListItem>
                    <asp:ListItem Value="12">December</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="height: 16px">
                <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList2_SelectedIndexChanged" CssClass="secondaryList" 
                 >
                    <asp:ListItem>Year</asp:ListItem>
                    <asp:ListItem>2012</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <asp:GridView ID="gridSalesByGenre" runat="server" AutoGenerateColumns="False" 
                    AllowPaging="True" CssClass="grid" 
                    onPageIndexChanging="gridSalesByGenre_OnPageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Genre">
                            <ItemTemplate>
                                <asp:Label id="lblGenre" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Genre") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Total Sales">
                            <ItemTemplate>
                                <asp:Label id="lblTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TotalSales") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="pager" />
                </asp:GridView>
                <asp:GridView ID="gridSalesByTitle" runat="server" AutoGenerateColumns="False" 
                    AllowPaging="True" CssClass="grid" 
                    onPageIndexChanging="gridSalesByTitle_OnPageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:Label id="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Author Name">
                            <ItemTemplate>
                                <asp:Label id="lblAuthorName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AuthorName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Total Sales">
                            <ItemTemplate>
                                <asp:Label id="lblTotalSales" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TotalSales") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="pager" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="height: 16px">
                &nbsp;</td>
            <td style="height: 16px" colspan="4">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
